package com.org.service.impl;

import com.org.dao.MIMapper;
import com.org.service.MIService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
public class MIServiceImpl implements MIService {

    @Autowired
    MIMapper miMapper;

    @Override
    public boolean isFieldValueExist(HashMap<String, Object> map) {
        int num = miMapper.isFieldValueExist(map);
        if (num > 0) {
            return true;
        } else {
            return false;
        }
    }
}
